package com.matt.repository;


import com.matt.domain.AboutPallet;
import com.matt.domain.Leads;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;


/**
 * 预约试托持久层
 *
 * @author makejava
 * @since 2025-02-20 11:01:22
 */
public interface AboutPalletRepository extends JpaRepository<AboutPallet, String>, JpaSpecificationExecutor<AboutPallet> {

    @Query(value = "SELECT * FROM about_pallet  WHERE areaId = :areaId and mobile = :mobile",nativeQuery = true)
    AboutPallet findByMobileAreaId(@Param("mobile") String mobile, @Param("areaId") String areaId);
}

